﻿using System.ComponentModel.DataAnnotations;

namespace SelfService.HaiTai.Models
{
    public class AddCreditValidate
    {
        /// <summary>
        /// 业务编号
        /// </summary>
        public string TranCode { get; set; } = "0004";

        /// <summary>
        /// 身份证号码
        /// </summary>
        [Required]
        public string CardNo { get; set; }

        /// <summary>
        /// 卡片类型0=一次性二维码, 1=医保卡, 2=身份证
        /// </summary>
        [Required]
        public string CardType { get; set; }

        /// <summary>
        /// 充值金额
        /// </summary>
        [Required]
        public string Amt { get; set; } = "0";

        /// <summary>
        /// 操作日期
        /// </summary>
        public string ActDate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd");

        /// <summary>
        /// 操作时间
        /// </summary>
        public string ActTime { get; set; } = DateTime.Now.ToString("HH:mm");

        /// <summary>
        /// 支付宝或者微信订单号
        /// </summary>
        public string Paylsh { get; set; } = "";

        /// <summary>
        /// XJ:现金, WX:微信, ZFB:支付宝
        /// </summary>
        [Required]
        public string TranType { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [Required]
        public string OrderId { get; set; }

        /// <summary>
        /// 自助机ID
        /// </summary>
        [Required]
        public string UserId { get; set; }

        /// <summary>
        /// MAC地址
        /// </summary>
        [Required]
        public string MacAddress { get; set; }
    }
}
